//
//  UITableViewExtensions.swift
//  iMeddy
//
//  Created by SSD on 2020/4/7.
//  Copyright © 2020 SSD. All rights reserved.
//

import UIKit
extension UITableView {
    public func dequeueReusableHeaderFooterView<T>(withIdentifier identifier: String, _ initClosure: (_ identifier: String) -> T) -> T {
        return (dequeueReusableHeaderFooterView(withIdentifier: identifier) as? T) ?? initClosure(identifier)
    }
}
